﻿using System.Windows.Automation;

namespace Noria.Core
{
    public static class ActiveX
    {
        public static void SetText(AutomationElement e, string text)
        {
            foreach (char c in text)
                NativeMethods.SendMessageW(e.Current.NativeWindowHandle, NativeMethods.WM_CHAR, c, 0);
        }
    }
}
